using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

//开始主面板
public class StartPanel : BasePanel
{
    static readonly string path = "Prefabs/UI/Panel/StartPanel";
    //使用基类成员，并传递path内容
    public StartPanel():base(new UIType(path)){}
    public override void OnEnter()
    {
        UITool.GetOrAddComponentInChildren<Button>("BtnSetting").onClick.AddListener(() =>
        {
            //点击事件也可以写在这里面
            Debug.LogError("set button");
            PanelManager.Push(new SettingPanel());
        });

    }

}
